<template>
  <div>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="热门图书" name="hotbook">
        <show></show>
      </el-tab-pane>

      <el-tab-pane label="计算机" name="childbook"></el-tab-pane>
      <el-tab-pane label="土木" name="historybook"></el-tab-pane>
      <el-tab-pane label="幼儿" name="novalbook"></el-tab-pane>
      <el-tab-pane label="成功励志" name="novalbook"></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: "hotbook", //axios查找图书数据
      books: [],
      items: ["计算机", "土木", "幼儿", "成功励志"],
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>
